package cn.bdqn.domain;

import java.util.Date;

/**
 * 课程
 * @author dkj
 */
public class Course {

    /**
     * id
     */
    private Integer id;

    /**
     * 基地id
     */
    private Integer baseId;

    /**
     * 基地名
     */
    private String baseName;

    /**
     * 基地地址
     */
    private String baseAddress;

    /**
     * 课程特色id
     */
    private Integer courseFeatureId;

    /**
     * 课程特色名
     */
    private String courseFeatureName;

    /**
     * 适合学段
     */
    private String fitAge;

    /**
     * 主题
     */
    private String theme;

    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 教师对象
     */
    private Teacher teacher;
    /**
     * 封面图片路径
     */
    private String coverImage;

    /**
     * 摘要
     */
    private String abstractText;

    /**
     * 发布时间
     */
    private Date issueTime;

    /**
     * '0.已发布，1未发布，2下线'
     */
    private Integer issueState;

    /**
     * 课程目标
     */
    private String courseTarget;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBaseId() {
        return baseId;
    }

    public void setBaseId(Integer baseId) {
        this.baseId = baseId;
    }

    public String getBaseName() {
        return baseName;
    }

    public String getBaseAddress() {
        return baseAddress;
    }

    public void setBaseAddress(String baseAddress) {
        this.baseAddress = baseAddress;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public void setBaseName(String baseName) {
        this.baseName = baseName == null ? null : baseName.trim();
    }

    public Integer getCourseFeatureId() {
        return courseFeatureId;
    }

    public void setCourseFeatureId(Integer courseFeatureId) {
        this.courseFeatureId = courseFeatureId;
    }

    public String getCourseFeatureName() {
        return courseFeatureName;
    }

    public void setCourseFeatureName(String courseFeatureName) {
        this.courseFeatureName = courseFeatureName == null ? null : courseFeatureName.trim();
    }

    public String getFitAge() {
        return fitAge;
    }

    public void setFitAge(String fitAge) {
        this.fitAge = fitAge == null ? null : fitAge.trim();
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme == null ? null : theme.trim();
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage == null ? null : coverImage.trim();
    }

    public String getAbstractText() {
        return abstractText;
    }

    public void setAbstractText(String abstractText) {
        this.abstractText = abstractText;
    }

    public Date getIssueTime() {
        return issueTime;
    }

    public void setIssueTime(Date issueTime) {
        this.issueTime = issueTime;
    }

    public Integer getIssueState() {
        return issueState;
    }

    public void setIssueState(Integer issueState) {
        this.issueState = issueState;
    }

    public String getCourseTarget() {
        return courseTarget;
    }

    public void setCourseTarget(String courseTarget) {
        this.courseTarget = courseTarget == null ? null : courseTarget.trim();
    }

    public Integer getTeacherId() {
        return teacherId==null ? teacher.getId():teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }
}
